package cn.zxh.improvement.common.core.enums;

/**
 * 消息体返回
 *
 * @param <T> 消息枚举
 * @author yemu
 */
public interface BaseMessageEnum<T extends Enum<T> & BaseMessageEnum<T>> extends BaseEnum<T, String> {

    /**
     * 解析消息
     *
     * @return 返回的消息
     */
    default String parseMessage() {
        return this.getCode() + ":" + this.getName();
    }

}
